import {Component} from "@angular/core";
import {HttpClient} from "@angular/common/http";
import {AppUrl} from "../../../app.url";

@Component({
    templateUrl:'student-confirm.component.html',
    styleUrls:['./student-confirm.component.less']

})

export class StudentConfirmComponent{

    stuconfirmList:any=[];
    isVisible:boolean=false;
    constructor(private http:HttpClient){
        this.http.post(AppUrl.authentication.stucardUrl,{}).subscribe(data=>{
            let temp:any=data;
            this.stuconfirmList=temp.data;
        });
    }

    confirmpass(data,id){
        this.http.post(AppUrl.authentication.confirmUrl,{authflag:data,id:id}).subscribe(data=>{
            console.log(data);
        });
    }

    showModal(){
        this.isVisible=true;
    }

    handleOk(ev){
        this.isVisible=false;
    }

}
